# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgbase=pynormaliz
pkgname=(python-pynormaliz)
pkgver=2.18
pkgrel=2
pkgdesc='A Python interface to Normaliz'
arch=(loong64 x86_64)
url='https://github.com/sebasguts/PyNormaliz'
license=(GPL2)
depends=(python normaliz)
makedepends=(python-build python-installer python-setuptools python-wheel)
source=(https://pypi.io/packages/source/P/PyNormaliz/PyNormaliz-$pkgver.tar.gz)
sha256sums=('359218cf35f400c43f338a132b7887f6a2affb05057c4e7eaa315a9f2b6a8b39')

build() {
  cd PyNormaliz-$pkgver
  python -m build --wheel --no-isolation
}

package_python-pynormaliz() {
  cd PyNormaliz-$pkgver
  
  python -m installer --destdir="$pkgdir" dist/*.whl
}
